package com.example.yangyinzhaixian.Fragemt.record;


import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.yangyinzhaixian.Bean.Recordbean;
import com.example.yangyinzhaixian.R;

/**
 * A simple {@link Fragment} subclass.
 */
public class BlankFragment1 extends Fragment {
    private Recordbean recordbean;
    private TextView blank1_shareTitle;
    private TextView blank1_summary;

    public BlankFragment1(Recordbean recordbean) {
        this.recordbean = recordbean;
    }

    public BlankFragment1() {
        // Required empty public constructor
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        // Inflate the layout for this fragment
        View inflate = inflater.inflate(R.layout.fragment_blank_fragment1, container, false);
        initView(inflate);
        String shareTitle = recordbean.getData().getShareView().getShareTitle();
        blank1_shareTitle.setText(shareTitle);
        blank1_summary.setText(recordbean.getData().getSummary());
        return inflate;

    }

    private void initView(View inflate) {
        blank1_shareTitle = (TextView) inflate.findViewById(R.id.blank1_shareTitle);
        blank1_summary = (TextView) inflate.findViewById(R.id.blank1_summary);
    }
}
